package com.ws.service.impl;

import com.ws.bean.Suppliers;
import com.ws.bean.vo.SupplierVo;
import com.ws.mapper.SupplierMapper;
import com.ws.service.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplierServiceImpl implements SupplierService {
    @Autowired
    private SupplierMapper supplierMapper;

    @Override
    public List<Suppliers> list(SupplierVo supplierVo) {
        return supplierMapper.list(supplierVo);
    }

    @Override
    public int add(Suppliers suppliers) {
        return supplierMapper.add(suppliers);
    }

    @Override
    public int delete(Integer id) {
        return supplierMapper.delete(id);
    }

    @Override
    public Suppliers getSupplierById(Integer id) {
        return supplierMapper.getSupplierById(id);
    }

    @Override
    public int update(Suppliers suppliers) {
        return supplierMapper.update(suppliers);
    }
}
